#ifndef DLGSTOPLEASE_H
#define DLGSTOPLEASE_H

#include <QDialog>
#include <dbmseditor.h>

namespace Ui {
    class DlgStopLease;
}

class DlgStopLease : public QDialog, public DbmsEditor
{
    Q_OBJECT

    void data_to_form();
    void form_to_data();
    void setup_connection();

public:
    explicit DlgStopLease(QWidget *parent = 0);
    ~DlgStopLease();
private slots:
    void data_changed() {m_data_changed = true;}
    void accept();
    void privatize();
    void stop_lease();
    void other_reason();
private:
    Ui::DlgStopLease *ui;
};

#endif // DLGSTOPLEASE_H
